package vip.xiaonuo.biz.modular.config.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TODO 描述
 *
 * @author mengxiaowei
 * @date 2024/9/24 13:40
 */

@NoArgsConstructor
@Data
public class DeviceServer {

    @JsonProperty("userId")
    private Integer userId;
    @JsonProperty("cmd")
    private CmdDTO cmd;

    @NoArgsConstructor
    @Data
    public static class CmdDTO {
        @JsonProperty("server")
        private String server;
        @JsonProperty("process")
        private ProcessDTO process;

        @NoArgsConstructor
        @Data
        public static class ProcessDTO {
            @JsonProperty("duration")
            private Integer duration;
            @JsonProperty("mode")
            private String mode;
            @JsonProperty("amp")
            private Integer amp;
            @JsonProperty("frq")
            private Integer frq;
        }
    }
}
